<!DOCTYPE html>
<html lang = "pt-BR">
    <head>
        <?php
        session_start();
        include_once'bloco/head.php';
        include_once '../control/conexao.php';
        include_once '../control/valida_sessao.php';

        function __autoload($classe) {
            include_once"../model/{$classe}.class.php";
        }
        ?>
        <link href="bootstrap/css/morris.css" rel="stylesheet">
    </head>
    <body>      
        <div id="wrapper">
            <?php
            include_once'bloco/navbar.php';
            include_once '../control/valida_perfil.php';
            if ($_SESSION['usuario']->id_perfil == 3){
                $matricula = $_SESSION['usuario']->usuario_login;
                echo"<script>location.href=('listar_processo2.php?matricula=$matricula')</script>";
            }
            ?>
            <div id="page-wrapper">
                <?php include_once 'bloco/banner.php'; ?>                  
                <div class="row">
                    <div class=" panel panel-success">
                        <div class="panel-heading">
                            <p class="panel-title"><i class = "glyphicon glyphicon-th-large"></i> Listar Processo</p>
                        </div>
                        <div class="panel-body">
                            <form autocomplete="off" role="form" name="form_busca_funcionario" method="get" action="listar_processo2.php">
                                <div class="alert alert-success alert-dismissable">
                                    <div class="container-fluid">                                        
                                        <div class="col-md-4 col-md-offset-4">
                                            <h3>Informe a matricula do aluno</h3>
                                            <div class="input-group" align="center">                                                            
                                                <input type="text" class="form-control" name="matricula" maxlength="6" required placeholder="Digite a matricula do Aluno">
                                                <span class="input-group-btn">
                                                    <button class="btn btn-success" type="submit">Buscar</button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>                        
                            </form>                            
                            <div class="col-lg-4 col-lg-offset-4" align="center">
                                <?php
                                include 'bloco/paginacao.php';
                                ?>                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php
        include_once'bloco/scripts.php';
        ?>
        <script type="text/javascript">
            function confirma() {
                var opcao = confirm("Excluir este usuário?");
                if (opcao == false) {
                    return false
                    exit();
                }
            }
        </script>
    </body>
</html>